﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/admin.master" AutoEventWireup="true" CodeFile="CompanyInfo_General.aspx.cs" Inherits="admin_CompanyInfo_General" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<script language="javascript" type="text/javascript">
    function mpeCuentaOnCancel() {

    }
    </script>
<div class="grid_16" id="content">
    <!--  TITLE START  --> 
    <div class="grid_9">
    <h1 class="dashboard">ACCOUNT</h1>
    </div>
    <!--RIGHT TEXT/CALENDAR-->
    <div class="grid_6" id="eventbox"><a href="#" class="inline_calendar">Mensaje</a>
    	<div class="hidden_calendar"></div>
    </div>
    <!--RIGHT TEXT/CALENDAR END-->
    <div class="clear">
    </div>
    <!--  TITLE END  -->    
    <!-- #PORTLETS START -->
    <div id="portlets">
    <!-- FIRST SORTABLE COLUMN START -->
      <div class="column" id="left">
      <!--THIS IS A PORTLET-->
		     
      <!--THIS IS A PORTLET-->
        
      </div>
      <!-- FIRST SORTABLE COLUMN END -->
      <!-- SECOND SORTABLE COLUMN START -->
      
	<!--  SECOND SORTABLE COLUMN END -->
    <div class="clear"></div>
    <!--THIS IS A WIDE PORTLET-->
    <div class="portlet">
        <div class="portlet-header fixed"><img src="images/icons/user.gif" width="16" height="16" alt="Accounts" /> Accounts</div>
		<div class="portlet-content nopadding">
            <table width="100%" cellpadding="0" cellspacing="0" id="box-table-a">
            <thead>
              <tr>
                <th width="130" scope="col">Company Name</th>
                <th width="130" scope="col">Tax ID</th>
                <th width="80" scope="col">Number of Employees</th>
                <th width="80" scope="col">Number of Accounts</th>
                <th width="90" scope="col">Actions</th>
              </tr>
            </thead>
            <tbody>
                <% if (companyarr!=null && companyarr.Count>0) {
                   foreach (RE_GenericBean rgb in companyarr)
                   {
            %>
              <tr>
                <td width="130"><%=rgb.strC1 %></td>
                <td width="130"><%=rgb.strC2 %></td>
                <td width="80"><%=rgb.intC3 %></td>
                <td width="80"><%=rgb.intC2 %></td>
                <td width="90"><a href="CompanyInfo_General.aspx?id=<%=rgb.intC1 %>" class="edit_icon" title="Edit">&nbsp;&nbsp;&nbsp;&nbsp;EDIT</a></td>
              </tr>
                <%     }
               }
            %>
            </tbody>
            </table>
        </div>
    </div>
    <div class="clear"></div>
    <div class="grid_15" id="textcontent">
          <asp:HyperLink ID="HyperLink1" runat="server" class="button_add"><span>Add</span></asp:HyperLink>
          <cc1:modalpopupextender ID="HyperLink1_ModalPopupExtender" runat="server" 
              DynamicServicePath="" Enabled="True" TargetControlID="HyperLink1" 
              PopupControlID="pnlAddType" BackgroundCssClass="FondoAplicacion" CancelControlID="btnCuentaCancelar"
            OnCancelScript="mpeCuentaOnCancel()">
          </cc1:modalpopupextender>
          
    </div>
<!--  END #PORTLETS -->  
   </div>
    <div class="clear"> </div>
    <div class="clear"> </div>
    <asp:Panel ID="pnlAddType" runat="server" CssClass="CajaDialogo" Width="733px">
        <table width="700" cellpadding="0" cellspacing="0"  id="box-table-a" summary="Add Location" align="center">
        <thead>
            <tr align="center">
                <th align="center" scope="col">COMPANY</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td align="center">
                    <table width="90%">
                            <tr>
                                <td>Company Name *</td>
                                <td>
                                    <asp:Label ID="lb_companyid" runat="server" Text="0" Visible="False"></asp:Label>
                                    <asp:TextBox ID="tb_companyname" runat="server"></asp:TextBox>
                                </td>
                                <td>Number of Employees *</td>
                                <td>
                                    <asp:TextBox ID="tb_numberemployees" runat="server" Enabled="False"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>Tax ID * (##-)</td>
                                <td>
                                    <asp:TextBox ID="tb_taxid" runat="server"></asp:TextBox>
                                </td>
                                <td>Number of accounts *</td>
                                <td>
                                    <asp:TextBox ID="tb_noaccount" runat="server" Enabled="False"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>Address 1 *</td>
                                <td>
                                    <asp:TextBox ID="tb_address1" runat="server"></asp:TextBox>
                                </td>
                                <td>Address 2</td>
                                <td>
                                    <asp:TextBox ID="tb_address2" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>City *(letras y espacios)</td>
                                <td>
                                    <asp:TextBox ID="tb_city" runat="server"></asp:TextBox>
                                </td>
                                <td>State *(2 letras)</td>
                                <td>
                                    <asp:TextBox ID="tb_state" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>Zip Code *(numeros)</td>
                                <td>
                                    <asp:TextBox ID="tb_zip" runat="server"></asp:TextBox>
                                </td>
                                <td>Country *(letras)</td>
                                <td>
                                    <asp:TextBox ID="tb_country" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>Phone Number 1 *(numeros y guiones parentesis)</td>
                                <td>
                                    <asp:TextBox ID="tb_phone1" runat="server"></asp:TextBox>
                                </td>
                                <td>Phone Number 2(numeros y guiones parentesis)</td>
                                <td>
                                    <asp:TextBox ID="tb_phone2" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>Phone Number 3(numeros y guiones parentesis)</td>
                                <td>
                                    <asp:TextBox ID="tb_phone3" runat="server"></asp:TextBox>
                                </td>
                                <td>Fax *(numeros y guiones parentesis)</td>
                                <td>
                                    <asp:TextBox ID="tb_fax" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>WebSite *</td>
                                <td>
                                    <asp:TextBox ID="tb_website" runat="server"></asp:TextBox>
                                </td>
                                <td>Contact E-Mail *</td>
                                <td>
                                    <asp:TextBox ID="tb_contactemail" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr align="right">
                                <td colspan="4" align="right">
                                    <span>&nbsp;</span>
                                    <asp:LinkButton ID="LinkButton1" runat="server" class="button_ok" 
                                        onclick="LinkButton1_Click"><span>SAVE</span></asp:LinkButton>
                                        <% if (id!=0) { %>
                                    <asp:LinkButton ID="LinkButton2" runat="server" class="button_edit" 
                                        onclick="LinkButton2_Click"><span>EDIT</span></asp:LinkButton>
                                        <asp:LinkButton ID="LinkButton3" runat="server" class="button_notok" 
                                        onclick="LinkButton3_Click"><span>DELETE</span></asp:LinkButton>
                                        <% } %>
                                        <asp:LinkButton ID="btnCuentaCancelar" runat="server" class="button_cancel"><span>CANCEL</span></asp:LinkButton>
                                    
                                </td>
                            </tr>
                        </table>
                
                </td>
            </tr>
        </tbody>
        </table>
    </asp:Panel>
  </div>

</asp:Content>

